package com.yq.master.test;

import com.google.common.collect.Lists;

import java.util.List;
import java.util.Map;

/**
 * 文件名：
 * 创建人：lvjx
 * 创建日期: 2017-11-29 9:27
 * 描  述：
 * 版本号：1.0
 */

public class Ceshi extends Thread {

    public void run() {

        try {
            int length = 100;
            int num = 0;
            int scale = 5000;

            List<Map<String, Object>> list = Lists.newArrayList();

            while(true) {
                System.out.println(num);

                num++;

                if(num == length) {
                    num = 0;
                }

                Thread.sleep(scale);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args)  {
        Ceshi thread = new Ceshi();
        thread.start();
    }
}
